<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                template="/templates/ui.xhtml">

    <ui:define name="head">
        <script type="text/javascript">
            document.onkeydown = function TabReplace() {
                if (event.keyCode == 13) {
                    if (event.srcElement.tagName != 'BUTTON')
                        event.keyCode = 9;
                }
            }
        </script>

    </ui:define>
    <ui:define name="content">
        <div style="margin:5px">
            <p:tabView id="tabview" dynamic="true" cache="false" style="font-weight:normal;font-style:normal">
                <p:tab title="海尔卡消费信息汇总">
                    <h:form>
                        <div id="qrytable">
                            <p:growl id="msgs" showDetail="false"/>
                            <h:outputLabel value="* 卡种:"/>
                            <h:selectOneMenu value="#{cardConsumeChartsAction.cardTypeCode}" style="width: 200px;">
                                <f:selectItems value="#{cardConsumeChartsAction.cardTypeOptions}"/>
                            </h:selectOneMenu>
                            <p:commandButton value="查询" action="#{cardConsumeChartsAction.onQry}"
                                             style="margin-left:30px;width:60px;" update="balPanel"/>
                            <p:separator/>
                            <p:panel id="balPanel" style="margin-top:10px">
                                <h:panelGrid columns="2">
                                    <h:outputLabel value="启用卡数:"/>
                                    <h:outputLabel value="#{cardConsumeChartsAction.usingCardCnt}"/>

                                    <h:outputLabel value="开卡总金额:"/>
                                    <h:outputLabel value="#{cardConsumeChartsAction.openCardTotalAmt}"/>
                                    <h:outputLabel value="卡消费总额:"/>
                                    <h:outputLabel value="#{cardConsumeChartsAction.cardConsumeTotalAmt}"/>

                                    <h:outputLabel value="卡内总余额:"/>
                                    <h:outputLabel value="#{cardConsumeChartsAction.cardTotalBalAmt}"/>
                                </h:panelGrid>

                            </p:panel>
                        </div>
                    </h:form>
                </p:tab>
            </p:tabView>
        </div>
    </ui:define>
</ui:composition>